﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="OpenService.Test" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        $("#Button1").click(function () {
            Kuaidi100Service.Query("yuantong", "6012248162", "2", "1", "desc", onSuccess);
        });

        function onSuccess(result) {
            $("#result").html(result);
        };
    });    
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
        <Services>
            <asp:ServiceReference Path="~/Service/Kuaidi100/Kuaidi100Service.svc" />
        </Services>
    </asp:ScriptManagerProxy>
    <br />
    <input id="Button1" type="button" value="button" />
    <div>
            <span id="result"></span>
        </div>  
</asp:Content>
